package com.yuncheng.spcyApi.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuncheng.common.base.service.BaseService;
import com.yuncheng.spcyApi.entity.SpcyRsDwk;
import com.yuncheng.spcyApi.vo.common.OrderItemVo;
import com.yuncheng.spcyApi.vo.common.PageVo;

import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.List;

/**
 * @Description: 审评查验-单位库
 * @Author: yuncheng
 * @Date: 2024-01-05
 * @Version: V1.0
 */
public interface ISpcyRsDwkService extends BaseService<SpcyRsDwk> {

    // 分页查询
    IPage<SpcyRsDwk> selectPageList(SpcyRsDwk query, String gjz, PageVo pageVo, OrderItemVo orderItemVo);

    // 列表查询
    List<SpcyRsDwk> selectList(SpcyRsDwk query, OrderItemVo orderItemVo);

    // 列表查询
    List<SpcyRsDwk> selectList(SpcyRsDwk query, String gjz, OrderItemVo orderItemVo);

    // 列表查询
    List<SpcyRsDwk> selectList(SpcyRsDwk query);

    // 验证是否存在相同的单位
    List<SpcyRsDwk> verifyDwIsExist(String fdwqc);

    // 添加
    SpcyRsDwk addDw(SpcyRsDwk query);

    // 修改
    void updatwDw(HashMap<String, String> buffer) throws InvocationTargetException, IllegalAccessException;

    // 删除
    void deleteDw(String id);

}
